package com.neusoft.neu24.nep.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neusoft.neu24.nep.entity.CommonResult;
import com.neusoft.neu24.nep.entity.Sysnode;
import com.neusoft.neu24.nep.mapper.SysnodeMapper;
import com.neusoft.neu24.nep.service.ISysnodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysnodeServiceImpl  extends ServiceImpl<SysnodeMapper, Sysnode> implements ISysnodeService {

    @Autowired
    SysnodeMapper  sysnodeMapper;

    @Override
    public CommonResult selectByRoleId(int roleid) {
        List<Sysnode> sysnodes = baseMapper.selectByRoleId(roleid);
        return CommonResult.sucess(sysnodes );
    }
}





















